﻿<cfscript>
/** 
* ORM MatrixGroup
* 
* @hint "Hibernate persistenter t_group. 用户组基础信息设定" 
* 
*/ 

component 
	displayname="public.service.orm.senate.MatrixGroup" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="MatrixGroup" 
	table="t_group"
	{
		
	property type="string" name="GID" column="group_id" fieldtype="id" generator="assigned" hint="用户组系统ID";

	property type="string" name="GroupName" column="group_name" hint="用户组名称";
	property type="string" name="GroupDescription" column="group_desc" hint="用户组权限设定说明";
	property type="string" default="0" name="isManager" column="is_manager" hint="是否属于管理角色";

	property name="MatrixGroupUsers" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="group_id" cfc="MatrixGroupUser" hint="用户授权";
	
}

</cfscript>